﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FileStorage.Caching.CacheContainers.NonExpiring
{
    /// <summary>
    /// Default implementation of a cache mechanism (in memory) that never expires. 
    /// Use this if:
    /// - the amount of items being stored is limited (fits in memory)
    /// - the data itself is already stored, and read only
    /// </summary>
    public class NeverExpiringCacheContainer : BaseCacheContainer
    {
        public override bool RequiresCleaning(string key)
        {
            //
            // no cleaning is required, as this class is designed
            // specifically for the cases where cache should never expire.
            //
            return false;
        }
    }
}